package org.gardenXml.diList;

//员工类
public class Emp {
    private Dept dept;
    private String eName;
    private int eAge;
    private String[] loves;

    public Dept getDept() {
        return dept;
    }

    public void setDept(Dept dept) {
        this.dept = dept;
    }

    public String geteName() {
        return eName;
    }

    public void seteName(String eName) {
        this.eName = eName;
    }

    public int geteAge() {
        return eAge;
    }

    public void seteAge(int eAge) {
        this.eAge = eAge;
    }

    public String[] getLoves() {
        return loves;
    }

    public void setLoves(String[] loves) {
        this.loves = loves;
    }

    public void work() {
        System.out.println("员工开始工作" + eAge);
        dept.info();
//        System.out.print(Arrays.toString(loves));

    }
}

